﻿using System;
using SolidDemo.Data.Enums;

namespace SolidDemo.Data.ProjectData
{
    public abstract class Project
    {
        protected Project(string type)
        {
            Created = DateTime.Now;
            Modified = DateTime.Now;
            Type = type;
        }

        public int Id { get; set; }

        public string Type { get; set; }

        public string Name { get; set; }

        public DateTime Created { get; set; }
        public DateTime Modified { get; set; }
    }

    public class PumpSelectProject : Project
    {
        public PumpSelectProject() : base(EProjectType.SelectPump) { }

        public bool IsStocked { get; set; }

        public double MaxFlowLPerMin { get; set; }
        public double MinFlowLperMin { get; set; }

        public int DiameterMm { get; set; }
    }
}
